import React, { Component } from "react";

class TestBind extends Component {
  constructor(props) {
    super(props);
    var hello = function (a, b, c, d) {
      console.log(this.name);
      console.log(a, b, c, d);
    };
    var demo = {
      name: "demo",
    };
    this.h = hello.bind(demo, 1, 2);
  }

  render() {
    return (
      <div>
        {this.h(3,4)}
      </div>
    );
  }
  
}

export default TestBind;
